import request from "@/utils/request";

// token
const access_token = '6b44a37a-0df2-4a8a-a4b8-7c0cd2d2a222'


// 请求获取兴趣列表
export const reqHobbyList = (pageSize:any,pageNum:any) => {
    return request.get<any,any>(`/avocation/avocations/rec/user?access_token=${access_token}&pageNum=${pageNum}&pageSize=${pageSize}`)
}

// 请求获取兴趣列表(已选)
export const reqCheckedHobby = () => {
    return request.get<any,any>(`/userCenter/users/me?access_token=${access_token}`)
}

// 请求获取兴趣列表(关键字搜索)
export const reqSearchHobby = () => {
    return request.get<any,any>(`/avocation/avocations/search/findByName?access_token=${access_token}&name=a`)
}
